package com.zhixiang.xaec.entity.safebase.relatedparty;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;
import com.zhixiang.xaec.entity.BaseEntity;

/**
 * @author:XULE
 * @version:2016-12-19
 * 
 */

@Comment("相关方协议")
@Table(name="safebase_RelatedPartyProtocol")
@Entity
public class RelatedPartyProtocol extends BaseEntity {

	@Comment("协议编号")
	private String protocolNo;
	@Comment("协议名称")
	private String protocolName;
	@Comment("相关方类型(1供方、2协作方、3承包方以及其他)")
	private Integer relatedType;
	@Comment("相关方名称")
	private String relatedName;
	@Comment("签订日期")
	private Date signDate;
	@Comment("协议有效期")
	private String protocolValidity;
	@Comment("协议内容")
	@Column(length=1000)
	private String protocolContent;
	public String getProtocolNo() {
		return protocolNo;
	}
	public void setProtocolNo(String protocolNo) {
		this.protocolNo = protocolNo;
	}
	public String getProtocolName() {
		return protocolName;
	}
	public void setProtocolName(String protocolName) {
		this.protocolName = protocolName;
	}
	public Integer getRelatedType() {
		return relatedType;
	}
	public void setRelatedType(Integer relatedType) {
		this.relatedType = relatedType;
	}
	public String getRelatedName() {
		return relatedName;
	}
	public void setRelatedName(String relatedName) {
		this.relatedName = relatedName;
	}
	@JSON(format="yyyy-MM-dd")
	public Date getSignDate() {
		return signDate;
	}
	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}
	public String getProtocolValidity() {
		return protocolValidity;
	}
	public void setProtocolValidity(String protocolValidity) {
		this.protocolValidity = protocolValidity;
	}
	public String getProtocolContent() {
		return protocolContent;
	}
	public void setProtocolContent(String protocolContent) {
		this.protocolContent = protocolContent;
	}
	
	

}
